package com.sharding.test.mapper;

import com.sharding.test.entity.TsUser;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yangpeiyu
 * @since 2021-10-21
 */
public interface TsUserMapper extends BaseMapper<TsUser> {

	TsUser getUserById(Long id);
	
	/**
	 * 分页查询
	 * @param page
	 * @param params
	 * @return
	 */
	IPage<TsUser> getUserPagingMap(Page<TsUser> page,
			                            @Param("map")Map<String,Object> params);
}
